home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / NewRoutineNames.dict
Encoding:
Text File  |  1996-09-04  |  11.5 KB  |  427 lines  |  [TEXT/MPS ]

  1. #
  2. #     File:        NewRoutineNames.dict
  3. #     Copyright:    © 1984-1996 by Apple Computer, Inc.
  4. #                 All rights reserved.
  5. #     Version:    Universal Interfaces 2.1.4
  6. #     Bugs?:        If you find a problem with this file, send the file and version
  7. #                 information (from above) and the problem description to:
  8. #                     Internet:    apple.bugs@applelink.apple.com
  9. #                     AppleLink:    APPLE.BUGS
  10. #
  11. #    Purpose:    This file was created to make it easier to update source code
  12. #                to use the new routine names.  PowerPC application bind to 
  13. #                system calls by name.  Therefore, any system routine names
  14. #                cannot change, or shipping applications would break. This was
  15. #                not a problem on classic 68K applications because system routine
  16. #                names were compiled out, only A-Traps were in the shipping app.
  17. #                Apple took the shift to PowerPC as an opportunity to define
  18. #                better names for system routines.
  19. #
  20. #     Usage:         You need to run each file in your source through the Canon tool with
  21. #                this file.  Below is an example. Be sure to change the file extension
  22. #                if your sources source file names end in something other than ".c"
  23. #
  24. #    Note:        1)The Canon tool does simple text replacement.  It has no concept of
  25. #                grammar, so it might do a replacement that is not necessary.  The
  26. #                example below shows all the changes the tool makes.  You should
  27. #                review these changes manually.
  28. #                2) The sample script below makes changes to your source files, and  
  29. #                generates a log (a diff to stdout) of those changes.  You many wish 
  30. #                to make a backup of your sources before running the script.
  31. #  
  32. #     Set Sources ""            # set the variable Sources to the path of the sources.  (Ex.  Set Sources "Hard Disk:Sources:")
  33. #    Set    NewRoutineNames    ""    # set the variable to be the full path of this file     (Ex.  Set NewRoutineNames "Hard Disk:NewRoutineNames.dict")
  34. #    Set Exit 0
  35. #    For i in `Files -f -r "{Sources}"≈.c`
  36. #         If `Exists -f "{i}"`
  37. #            Canon -s "{NewRoutineNames}" "{i}" > "{i}.can"
  38. #            Compare "{i}" "{i}.can"
  39. #            Rename -y "{i}.can" "{i}"
  40. #        End
  41. #    End
  42. #
  43.  
  44.  
  45. #################
  46. # AppleEvents
  47. #################
  48. AEPutKeyPtr        AEPutParamPtr
  49. AEPutKeyDesc    AEPutParamDesc
  50. AEGetKeyPtr        AEGetParamPtr
  51. AEGetKeyDesc    AEGetParamDesc
  52. AESizeOfKeyDesc    AESizeOfParam
  53. AEDeleteKeyDesc    AEDeleteParam
  54.  
  55.  
  56. #################
  57. # CMApplications
  58. #################
  59. CMFlattenProc                CMFlattenProcPtr
  60. CMBitmapCallBackProc        CMBitmapCallBackProcPtr
  61. CMProfileFilterProc            CMProfileFilterProcPtr
  62. CMNoError                    noErr                            
  63. CMProfileError                cmProfileError
  64. CMMethodError                cmMethodError
  65. CMMethodNotFound            cmMethodNotFound
  66. CMProfileNotFound            cmProfileNotFound
  67. CMProfilesIdentical            cmProfilesIdentical
  68. CMCantConcatenateError        cmCantConcatenateError
  69. CMCantXYZ                    cmCantXYZ
  70. CMCantDeleteProfile            cmCantDeleteProfile
  71. CMUnsupportedDataType        cmUnsupportedDataType
  72. CMNoCurrentProfile            cmNoCurrentProfile
  73. qdSystemDevice                cmSystemDevice
  74. qdGDevice                    cmGDevice
  75. kMatchCMMType                cmMatchCMMType
  76. kMatchApplProfileVersion    cmMatchApplProfileVersion
  77. kMatchDataType                cmMatchDataType
  78. kMatchDeviceType            cmMatchDeviceType
  79. kMatchDeviceManufacturer    cmMatchDeviceManufacturer
  80. kMatchDeviceModel            cmMatchDeviceModel
  81. kMatchDeviceAttributes        cmMatchDeviceAttributes
  82. kMatchFlags                    cmMatchFlags
  83. kMatchOptions                cmMatchOptions
  84. kMatchWhite                    cmMatchWhite
  85. kMatchBlack                    cmMatchBlack
  86. CMYKColor                    CMCMYKColor
  87. CWorld                        CMWorldRef
  88. EndMatching                    CMEndMatching
  89. EnableMatching                CMEnableMatchingComment
  90. GetColorSyncFolderSpec        CMGetColorSyncFolderSpec
  91. BeginMatching                CMBeginMatching
  92. DrawMatchedPicture            CMDrawMatchedPicture
  93. UseProfile                    CMUseProfileComment
  94. GetProfileName                CMGetProfileName
  95. GetProfileAdditionalDataOffset    CMGetProfileAdditionalDataOffset
  96.  
  97.  
  98. #################
  99. # CMICCProfile
  100. #################
  101. kCMApplProfileVersion        cmCS1ProfileVersion
  102. grayResponse                cmGrayResponse
  103. redResponse                    cmRedResponse
  104. greenResponse                cmGreenResponse
  105. blueResponse                cmBlueResponse
  106. cyanResponse                cmCyanResponse
  107. magentaResponse                cmMagentaResponse
  108. yellowResponse                cmYellowResponse
  109. ucrResponse                    cmUcrResponse
  110. bgResponse                    cmBgResponse
  111. onePlusLastResponse            cmOnePlusLastResponse
  112. rgbData                        cmRGBData
  113. cmykData                    cmCMYKData
  114. grayData                    cmGrayData
  115. xyzData                        cmXYZData
  116. XYZData                        cmXYZData
  117. monitorDevice                cmMonitorDevice
  118. scannerDevice                cmScannerDevice
  119. printerDevice                cmPrinterDevice
  120. CMNativeMatchingPreferred    cmNativeMatchingPreferred    
  121. CMTurnOffCache                cmTurnOffCache                
  122. CMPerceptualMatch            cmPerceptualMatch    
  123. CMColorimetricMatch            cmColorimetricMatch        
  124. CMSaturationMatch            cmSaturationMatch            
  125. XYZColor                    CMXYZColor
  126. IString                        CMIString
  127. responseColor                CMResponseColor
  128.  
  129.  
  130. #################
  131. # CodeFragments (types and constants)
  132. #################
  133. ConnectionID                    CFragConnectionID
  134. LoadFlags                        CFragLoadOptions
  135. SymClass                        CFragSymbolClass
  136. MemFragment                        CFragOldMemoryLocator
  137. DiskFragment                    CFragHFSDiskFlatLocator
  138. SegmentedFragment                CFragHFSSegmentedLocator
  139. FragmentLocator                    CFragHFSLocator    
  140. FragmentLocatorPtr                CFragHFSLocatorPtr
  141. InitBlock                        CFragInitBlock
  142. InitBlockPtr                    CFragInitBlockPtr
  143. ConnectionInitializationRoutine    CFragInitFunction
  144. ConnectionTerminationRoutine     CFragTermRoutine
  145. kPowerPCArch                    kPowerPCCFragArch
  146. kMotorola68KArch                kMotorola68KCFragArch
  147. kAnyArchType                    kAnyCFragArch
  148. kNoLibName                        NULL
  149. kNoConnectionID                    NULL
  150. kLoadLib                        kLoadCFrag
  151. kFindLib                        kFindCFrag
  152. kLoadNewCopy                    kNewCFragCopy
  153. kUseInPlace                        kInplaceCFrag
  154. kCodeSym                        kCodeCFragSymbol
  155. kDataSym                        kDataCFragSymbol
  156. kTVectSym                        kTVectorCFragSymbol
  157. kTOCSym                            kTOCCFragSymbol
  158. kGlueSym                        kGlueCFragSymbol
  159. kInMem                            kMemoryCFragLocator
  160. kOnDiskFlat                        kDataForkCFragLocator
  161. kOnDiskSegmented                kResourceCFragLocator
  162. kIsLib                            kImportLibraryCFrag
  163. kIsApp                            kApplicationCFrag
  164. kIsDropIn                        kDropInAdditionCFrag
  165. kFullLib                        kIsCompleteCFrag
  166. kUpdateLib                        kFirstCFragUpdate
  167. kCFMRsrcType                    kCFragResourceType
  168. kCFMRsrcID                        kCFragResourceID
  169. kSHLBFileType                    kCFragLibraryFileType
  170. kUnresolvedSymbolAddress        kUnresolvedCFragSymbolAddress
  171. kPowerPC                        kPowerPCCFragArch
  172. kMotorola68K                    kMotorola68KCFragArch
  173.  
  174.  
  175. #################
  176. # Controls
  177. #################
  178. SetCTitle        SetControlTitle
  179. GetCTitle        GetControlTitle
  180. UpdtControl        UpdateControls
  181. SetCtlValue        SetControlValue
  182. GetCtlValue        GetControlValue
  183. SetCtlMin        SetControlMinimum
  184. GetCtlMin        GetControlMinimum
  185. SetCtlMax        SetControlMaximum
  186. GetCtlMax        GetControlMaximum
  187. GetAuxCtl        GetAuxiliaryControlRecord
  188. SetCRefCon        SetControlReference    
  189. GetCRefCon        GetControlReference
  190. SetCtlAction    SetControlAction
  191. GetCtlAction    GetControlAction
  192. SetCtlColor        SetControlColor
  193. GetCVariant        GetControlVariant
  194. useWFont                    popupUseWFont
  195. inLabel                        kControlLabelPart
  196. inMenu                        kControlMenuPart
  197. inTriangle                     kControlTrianglePart
  198. inButton                     kControlButtonPart
  199. inCheckBox                     kControlCheckBoxPart
  200. inUpButton                     kControlUpButtonPart
  201. inDownButton                kControlDownButtonPart
  202. inPageUp                     kControlPageUpPart
  203. inPageDown                     kControlPageDownPart
  204. inThumb                     kControlIndicatorPart
  205. kNoHiliteControlPart        kControlNoPart
  206. kInLabelControlPart            kControlLabelPart
  207. kInMenuControlPart            kControlMenuPart
  208. kInTriangleControlPart        kControlTrianglePart
  209. kInButtonControlPart        kControlButtonPart
  210. kInCheckBoxControlPart        kControlCheckBoxPart
  211. kInUpButtonControlPart        kControlUpButtonPart
  212. kInDownButtonControlPart    kControlDownButtonPart
  213. kInPageUpControlPart        kControlPageUpPart
  214. kInPageDownControlPart        kControlPageDownPart
  215. kInIndicatorControlPart        kControlIndicatorPart
  216. kReservedControlPart        kControlDisabledPart
  217. kControlInactiveControlPart kControlInactivePart
  218.  
  219.  
  220. #################
  221. # CTBUtilities
  222. #################
  223. NuLookup        StandardNBP
  224. NuPLookup        CustomNBP
  225.  
  226.  
  227. #################
  228. # Dialogs
  229. #################
  230. DisposDialog    DisposeDialog
  231. UpdtDialog        UpdateDialog
  232. GetDItem        GetDialogItem
  233. SetDItem        SetDialogItem
  234. HideDItem        HideDialogItem
  235. ShowDItem        ShowDialogItem
  236. SelIText        SelectDialogItemText
  237. GetIText        GetDialogItemText
  238. SetIText        SetDialogItemText
  239. FindDItem        FindDialogItem
  240. NewCDialog        NewColorDialog
  241. GetAlrtStage    GetAlertStage
  242. ResetAlrtStage    ResetAlertStage
  243. DlgCut            DialogCut
  244. DlgCopy            DialogCopy
  245. DlgPaste        DialogPaste
  246. DlgDelete        DialogDelete
  247. SetDAFont        SetDialogFont
  248. kOkItemIndex        kStdOkItemIndex
  249. kCancelItemIndex    kStdCancelItemIndex
  250.  
  251. #################
  252. # Events
  253. #################
  254. KeyTrans        KeyTranslate
  255.  
  256.  
  257. #################
  258. # Lists
  259. #################
  260. LDoDraw            LSetDrawingMode
  261. LFind            LGetCellDataLocation
  262.  
  263.  
  264. #################
  265. # Memory
  266. #################
  267. ApplicZone        ApplicationZone
  268. MFTempNewHandle    TempNewHandle
  269. MFMaxMem        TempMaxMem
  270. MFFreeMem        TempFreeMem
  271. MFTempHLock        TempHLock
  272. MFTempHUnlock    TempHUnlock
  273. MFTempDisposHandle    TempDisposeHandle
  274. MFTopMem        TempTopMem
  275. ResrvMem        ReserveMem
  276. DisposPtr        DisposePtr
  277. DisposHandle    DisposeHandle
  278. ReallocHandle    ReallocateHandle
  279.  
  280.  
  281. #################
  282. # Menus
  283. #################
  284. AddResMenu        AppendResMenu
  285. InsMenuItem        InsertMenuItem
  286. DelMenuItem        DeleteMenuItem
  287. SetItem            SetMenuItemText
  288. GetItem            GetMenuItemText
  289. GetMHandle        GetMenuHandle
  290. DelMCEntries    DeleteMCEntries
  291. DispMCInfo        DisposeMCInfo
  292.  
  293.  
  294. #################
  295. # OSUtils
  296. #################
  297. LongDate2Secs    LongDateToSeconds
  298. LongSecs2Date    LongSecondsToDate
  299. IUMetric        IsMetric
  300. Date2Secs        DateToSeconds
  301. Secs2Date        SecondsToDate
  302.  
  303.  
  304. #################
  305. # PictUtils
  306. #################
  307. DisposPictInfo    DisposePictInfo
  308.  
  309.  
  310. #################
  311. # Quickdraw
  312. #################
  313. DisposPixMap    DisposePixMap
  314. DisposPixPat    DisposePixPat
  315. DisposCTable    DisposeCTable
  316. DisposCCursor    DisposeCCursor
  317. DisposCIcon        DisposeCIcon
  318. DisposGDevice    DisposeGDevice
  319. frame            kQDGrafVerbFrame
  320. paint            kQDGrafVerbPaint
  321. erase            kQDGrafVerbErase
  322. invert            kQDGrafVerbInvert
  323. fill            kQDGrafVerbFill
  324.  
  325.  
  326. #################
  327. # QuickdrawText
  328. #################
  329. NPixel2Char        PixelToChar
  330. NChar2Pixel        CharToPixel
  331. NDrawJust        DrawJustified
  332. NMeasureJust    MeasureJustified
  333. NPortionText    PortionLine
  334.  
  335.  
  336. #################
  337. # QuickTime
  338. #################
  339. ClockGetTime    GetClockTime
  340.  
  341. #################
  342. # Resources
  343. #################
  344. SizeResource    GetResourceSizeOnDisk
  345. MaxSizeRsrc        GetMaxResourceSize
  346. RmveResource    RemoveResource
  347.  
  348.  
  349. #################
  350. # Script
  351. #################
  352. SetSysJust        SetSysDirection
  353. GetSysJust        GetSysDirection
  354. Font2Script        FontToScript
  355. GetEnvirons        GetScriptManagerVariable
  356. SetEnvirons        SetScriptManagerVariable
  357. IUGetIntl        GetIntlResource
  358. IUSetIntl        SetIntlResource
  359. IUClearCache    ClearIntlResourceCache
  360. IUGetItlTable    GetIntlResourceTable
  361. GetScript        GetScriptVariable
  362. SetScript        SetScriptVariable
  363.  
  364.  
  365. #################
  366. # Sound
  367. #################
  368. initChan0        waveInitChannel0
  369. initChan1        waveInitChannel1
  370. initChan2        waveInitChannel2
  371. initChan3        waveInitChannel3        
  372.  
  373.  
  374. #################
  375. # TextEdit
  376. #################
  377. TESetJust        TESetAlignment
  378. TextBox            TETextBox
  379. TEStylNew        TEStyleNew
  380. SetStylHandle    TESetStyleHandle
  381. SetStyleHandle    TESetStyleHandle
  382. GetStylHandle    TEGetStyleHandle
  383. GetStyleHandle    TEGetStyleHandle
  384. TEStylPaste        TEStylePaste
  385. GetStylScrap    TEGetStyleScrapHandle
  386. GetStyleScrap    TEGetStyleScrapHandle
  387. SetStylScrap    TEUseStyleScrap
  388. SetStyleScrap    TEUseStyleScrap
  389. SetClikLoop        TESetClickLoop
  390. TEGetScrapLen    TEGetScrapLength
  391. TESetScrapLen    TESetScrapLength
  392. SetWordBreak    TESetWordBreak
  393. TEStylInsert    TEStyleInsert
  394. TEBitClear        teBitClear
  395. TEBitSet        teBitSet
  396. TEBitTest        teBitTest
  397.  
  398.  
  399. #################
  400. # TextUtils
  401. #################
  402. FormatX2Str        ExtendedToString
  403. UprString        UpperString
  404. String2Date        StringToDate
  405. String2Time        StringToTime
  406. FormatX2Str        ExtendedToString
  407. FormatStr2X        StringToExtended
  408. Str2Format        StringToFormatRec
  409. Format2Str        FormatRecToString
  410. IUDatePString    DateString
  411. IUTimePString    TimeString
  412. IULDateString    LongDateString
  413. IULTimeString    LongTimeString
  414. IUCompPString    CompareString
  415. IUEqualPString    IdenticalString
  416. IUMagPString    CompareText
  417. IUMagIDPString    IdenticalText
  418. IULangOrder        LanguageOrder
  419. IUTextOrder        TextOrder
  420. IUStringOrder    StringOrder
  421.